Skip to content

fix: update error hints to reference subdir after path→subdir rename#46

Merged
min0625 merged 2 commits into
mainfrom
fix/stale-path-hint
Jul 2, 2026
Merged

fix: update error hints to reference subdir after path→subdir rename#46
min0625 merged 2 commits into
mainfrom
fix/stale-path-hint

Conversation

@min0625

@min0625 min0625 commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Three user-facing error hints still told users to check a mistyped path in the manifest, but the field was renamed to subdir in #31. Users following the hint would look for a key that no longer exists.

  • internal/fetcher/fetcher.go (two occurrences)
  • internal/hasher/hasher.go (one occurrence)

No golden files or docs contain the old wording, so this is a message-only change.

🤖 Generated with Claude Code

The hints in fetcher and hasher still told users to check a mistyped
`path` in the manifest, but the field was renamed to `subdir` in #31.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix stale error hints: pathsubdir in manifest guidance

🐞 Bug fix 🕐 Less than 5 minutes

Grey Divider

AI Description

• Update config error hints to reference subdir after manifest field rename.
• Fix remaining occurrences in fetcher and hasher user-facing messages.
• Prevent users from searching for the removed path key in manifests.
High-Level Assessment

This is the correct, minimal fix: update the remaining user-facing hints to match the subdir manifest field rename. Alternatives (e.g., preserving path as an alias) are unnecessary for a stale-message-only issue and would introduce avoidable surface area.

Files changed (2) +3 / -3

Bug fix (2) +3 / -3
fetcher.goReplace 'path' with 'subdir' in missing-path config hints +2/-2

Replace 'path' with 'subdir' in missing-path config hints

• Updates two clierr config-hint strings emitted when a dependency path/subdir cannot be found at a commit. Aligns the guidance with the manifest field rename to 'subdir' so users are directed to the correct key.

internal/fetcher/fetcher.go

hasher.goReplace 'path' with 'subdir' in empty-dependency hint +1/-1

Replace 'path' with 'subdir' in empty-dependency hint

• Updates the clierr config-hint string used when a dependency tree contains no files. The hint now points users to the 'subdir' manifest field rather than the removed 'path' key.

internal/hasher/hasher.go

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

Codecov flagged the post-checkout "not a directory" branch as the only
uncovered line of the patch; exercise it with a subdir that points at a
blob, which passes the ls-tree existence check.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@min0625 min0625 force-pushed the fix/stale-path-hint branch from ace0582 to c29bdcf Compare July 2, 2026 06:33
@min0625 min0625 merged commit e25add7 into main Jul 2, 2026
9 checks passed
@min0625 min0625 deleted the fix/stale-path-hint branch July 2, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant